/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package mnstudent.datatranferobject;

import java.util.Objects;

/**
 *
 * @author 11520_000
 */
public class SubjectDisplay {
    
    private String m_SubjectID;
    private String m_NameOfSubject;
    private String m_NameKindOfSubject;
    private int    m_CoutSCredit;//so tin chi
    
    
    public String getSubjectID() {
        return m_SubjectID;
    }

    public void setSubjectID(String m_SubjectID) {
        this.m_SubjectID = m_SubjectID;
    }

    public String getNameOfSubject() {
        return m_NameOfSubject;
    }

    public void setNameOfSubject(String m_NameOfSubject) {
        this.m_NameOfSubject = m_NameOfSubject;
    }

    public String getNameKindOfSubject() {
        return m_NameKindOfSubject;
    }

    public void setNameKindOfSubject(String m_NameKindOfSubject) {
        this.m_NameKindOfSubject = m_NameKindOfSubject;
    }

    public int getCoutSCredit() {
        return m_CoutSCredit;
    }

    public void setCoutSCredit(int m_CoutSCredit) {
        this.m_CoutSCredit = m_CoutSCredit;
    }

    public SubjectDisplay() {
    }

    public SubjectDisplay(String m_SubjectID, String m_NameOfSubject, String m_NameKindOfSubject, int m_CoutSCredit) {
        this.m_SubjectID = m_SubjectID;
        this.m_NameOfSubject = m_NameOfSubject;
        this.m_NameKindOfSubject = m_NameKindOfSubject;
        this.m_CoutSCredit = m_CoutSCredit;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 47 * hash + Objects.hashCode(this.m_SubjectID);
        hash = 47 * hash + Objects.hashCode(this.m_NameOfSubject);
        hash = 47 * hash + Objects.hashCode(this.m_NameKindOfSubject);
        hash = 47 * hash + this.m_CoutSCredit;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final SubjectDisplay other = (SubjectDisplay) obj;
        if (!Objects.equals(this.m_SubjectID, other.m_SubjectID)) {
            return false;
        }
        if (!Objects.equals(this.m_NameOfSubject, other.m_NameOfSubject)) {
            return false;
        }
        if (!Objects.equals(this.m_NameKindOfSubject, other.m_NameKindOfSubject)) {
            return false;
        }
        if (this.m_CoutSCredit != other.m_CoutSCredit) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return m_NameOfSubject;
    }
    
    
    
}
